package com.ycd.fegins;

import com.ycd.domain.Product;
import com.ycd.domain.Result;
import com.ycd.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "product-server")
@RequestMapping("/product")
public interface ProductFeignClient {

    /**
     * product保存方法
     * @param product
     * @return
     */
    @RequestMapping(value="/add", method = RequestMethod.POST)
    void add(@RequestBody Product product);

    @GetMapping("/loadById/{id}")
    Product loadById(@PathVariable("id") Long id);
}
